Homework 6: Universality of Processes

ثبت نشده
چکیده

A semaphore is a data structure designed to track how many units of some resource are available. It also provides operations to increase or decrease the number, representing the creation or the consumption of that resource, respectively. A process that wishes to consume one unit of the resource, when none are available, will be blocked until one new unit of the resource is created. Semaphores are easily implementable in Concurrent Algol if we ignore the issue of fairness. The trick is to treat a process whose sole purpose is emitting a message as a token for one unit of resource. The way to take a token is to receive one message from that channel and the token process that is sending on that channel will die. The way to give back a token is to create one such token process. The number of available units is thus represented by the number of token processes floating around. Because we do not care about the content of the messages, but only the existence of the messages themselves. unit is a suitable type for the messages. Combing these two ideas, a token can be a process (only) emitting a nullary tuple.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Homework 6: Universality of Processes

A semaphore is a data structure designed to track how many units of some resource are available. It also provides operations to increase or decrease the number, representing the creation or the consumption of that resource, respectively. A process that wishes to consume one unit of the resource, when none are available, will be blocked until one new unit of the resource is created. Semaphores a...

متن کامل

Homework 6: Universality of Processes

A semaphore is a data structure designed to track how many units of some resource are available. It also provides operations to increase or decrease the number, representing the creation or the consumption of that resource, respectively. A process that wishes to consume one unit of the resource, when none are available, will be blocked until one new unit of the resource is created. Semaphores a...

متن کامل

The relationship between therapist competence and homework compliance in maintenance cognitive therapy for recurrent depression: secondary analysis of a randomized trial.

Meta-analyses reveal that homework compliance is associated with a better treatment outcome. However, little is known about the processes that could be responsible for patient compliance with homework. It has been proposed that therapist competence, in particular with respect to reviewing homework, is highly relevant for homework compliance. The present study is a secondary analysis of a random...

متن کامل

The effects of teachers' homework follow-up practices on students' EFL performance: a randomized-group design

This study analyzed the effects of five types of homework follow-up practices (i.e., checking homework completion; answering questions about homework; checking homework orally; checking homework on the board; and collecting and grading homework) used in class by 26 teachers of English as a Foreign Language (EFL) using a randomized-group design. Once a week, for 6 weeks, the EFL teachers used a ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012